package park;

public class J12Ch04Ex01Song {

	public static void main(String[] args) {
		
		Song LetItGo = new Song();
		LetItGo.title = "LetItGo";
		LetItGo.artist = "효린";
		LetItGo.album = "Frozen OST";
		LetItGo.composer[1] = "박명수";
		LetItGo.composer[2] = "이명박";
		LetItGo.year = "2013";
		LetItGo.track = "5";
		
		LetItGo.show();// 곡 출력

	}

}

class Song{
	
	String title;
	String artist;
	String album;
	String composer[] = new String[3];
	String year;
	String track;
	
	public void show(){
		
		System.out.println(title);
		System.out.println(artist);
		System.out.println(album);
		if(composer !=null){
		for(int i = 1; i<composer.length; ++i){
			System.out.println(composer[i]);
		}
	}
		System.out.println(year);
		System.out.println(track);
		
	}//show
	
}//song